package ui;

// Main.java
import javax.swing.*;
import core.engine.systemDBEngine;
import core.exceptions.DBEngineException;
import security.auth.UserManager;
import session.Session;
import storage.StorageException;
import storage.io.FileManager;
import storage.manager.DatabaseManager;

public class GUI {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            // 创建闪屏并传入加载完成后的回调
            SplashScreen splash = new SplashScreen(() -> {
                // 闪屏加载完成后执行此代码
                new LoginFrame();
            });

            // 显示闪屏
            splash.showSplash();
        });
    }
}